<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <a href="/add.html">添加</a>
    <table border="1" cellspacing="0" width="80%">
        <thead>
            <tr><th>姓名</th><th>性别</th><th>生日</th><th>学历</th><th>操作</th></tr>
        </thead>

        <tbody>
            <tr th:each="obj : ${cutObj.records}">
                <td th:text="${obj.name}"></td>
                <td th:text="${obj.sex}"></td>
                <td th:text="${obj.birthday}"></td>
                <td th:text="${obj.edu}"></td>
                <td>
                    <a th:href="@{/student/del(id=${obj.id})}">删除</a>
                    <a th:href="@{/student/findById(id=${obj.id})}">修改</a>
                </td>
            </tr>
        </tbody>
    </table>
    <a style="margin-left: 10px" th:each="i : ${#numbers.sequence(1,cutObj.pages)}"
    th:text="${i}" th:href="@{/student/cutAll(pageNO=${i})}"></a>
</body>
</html>